/**
 * Created by hms on 2020-08-18.
 */
import Vue from 'vue';
import Vuex from 'vuex'

//挂载
Vue.use(Vuex);

//加载modules!!!!!千万注意：这边{index} 是作为常量加进来
import { Login } from './modules/Login.js'
import { BasicData } from './modules/BasicData.js'
import { Person } from './modules/Person.js'

//创建VueX对象
const store = new Vuex.Store({
    state:{
        //分页配置
        page_sizes:[20,50,100],
        //默认页面条数,
        default_page_size:20,
        allnewstype:[           //公告发布位置
          { value:1 ,label:'学习平台'},
          { value:2 , label:'首页-街道简报'},
          { value:3 , label:'首页-社区动态'},
          { value:4 , label:'服务-民生政策'},
          { value:5 , label:'服务-在线说事'},
          { value:6 , label:'治理-疫情防控'},
          { value:7 , label:'治理-普法宣传'},
          { value:8 , label:'治理-扫黑除恶'},
          { value:9 , label:'服务-办事指南'},
        ],
        allbannertype:[
          {value:1,label:'首页'},
          {value:2,label:'学习平台'},
          {value:3,label:'服务'},
          {value:4,label:'治理'},
          {value:5,label:'志愿服务'}
        ],
        allcompanytype:[
           {label:'集体企业',value:'1'},
           {label:'外资企业',value:'2'},
           {label:'私营企业',value:'3'},
           {label:'行政事业单位',value:'4'},
           {label:'个体户',value:'5'},
           {label:'其他企业',value:'6'}
        ],
        allhospitallevel:[
           {label:'三级甲等',value:'1'},
           {label:'三级乙等',value:'2'},
           {label:'三级丙等',value:'3'},
           {label:'二级甲等',value:'4'},
           {label:'二级乙等',value:'5'},
           {label:'二级丙等',value:'6'},
           {label:'一级甲等',value:'7'},
           {label:'一级乙等',value:'8'},
           {label:'一级丙等',value:'9'},
           {label:'其他',value:'10'}
        ],
        allschooltype:[
          {value:'1',label:'幼儿园'},
          {value:'2',label:'小学'},
          {value:'3',label:'成人小学'},
          {value:'4',label:'普通初中'},
          {value:'5',label:'职业初中'},
          {value:'6',label:'成人初中'},
          {value:'7',label:'普通高中'},
          {value:'8',label:'职业高中'},
          {value:'9',label:'成人高中'},
          {value:'10',label:'普通大学'},
          {value:'11',label:'本科'},
          {value:'12',label:'大专'}
        ],
        allserviceduty:[
            {label:'网格管理员',value:'1'},
            {label:'网格警员',value:'2'},
            {label:'网格民情信息员',value:'3'},
            {label:'网格监督员',value:'4'},
            {label:'网格长',value:'5'},
            {label:'社区书记',value:'6'}
        ]
    },
    modules:{
        Login,
        BasicData,
        Person,
    }
})
export default store
